package com.woniu.bank.mapper;

import com.woniu.bank.dto.RoleDTO;
import com.woniu.bank.entity.SysRole;

import java.util.List;

/**
* @author wangheng
* @description 针对表【sys_role(角色表)】的数据库操作Mapper
* @createDate 2023-01-02 19:19:42
* @Entity com.woniu.bank.entity.SysRole
*/
public interface SysRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<Integer> getRolesByUser(Integer uid);

    List<SysRole> getAllRoles();

    int deleteRoleByUser(Long uid);

    int saveRoleByUser(RoleDTO roleDTO);
}
